package com.js.auth.server;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author ygl
 * @create 2018-10-26
 * @DESCRIPTION
 **/
@SpringBootApplication
@MapperScan(basePackages={"com.js.auth.server.module.client.mapper","com.js.auth.server.module.oauth.mapper"})
@EnableAuthorizationServer
@EnableEurekaClient
@EnableFeignClients
@EnableSwagger2Doc
@ComponentScan({"com.js.core","com.js.auth.server"})
public class JsAuthApplication {

    public static void main(String[] args) {
        SpringApplication.run(JsAuthApplication.class, args);
    }

}
